package design_modle.factory;

public class CahRebate extends CashSuper {
    private  double rebate = 1;

    public CahRebate(double rebate) {
        this.rebate = rebate;
    }
    @Override
    public double acceptCash(double money) {
        return money * rebate;
    }
}
